import {
  Calculator,
  DatabaseEnter,
  FolderClose,
  FolderConversion,
  People,
  SettingTwo,
  Peoples,
} from '@icon-park/vue-next'
import { RouteRecordRaw } from 'vue-router'

export default [
  {
    path: '/admin/compute',
    component: () => import('@renderer/layouts/admin/index.vue'),
    meta: { menu: { title: '预算', order: 100, isType: 'admin', icon: Calculator } },
    children: [
      {
        name: 'computeList',
        path: '',
        component: () => import('@renderer/views/compute/index.vue'),
        meta: { menu: { title: '预算' } },
      },
    ],
  },
  {
    path: '/admin/project',
    component: () => import('@renderer/layouts/admin/index.vue'),
    meta: { menu: { title: '项目文件', order: 100, isType: 'admin', icon: FolderClose } },
    children: [
      {
        name: 'projectList',
        path: '',
        component: () => import('@renderer/views/project/index.vue'),
        meta: { menu: { title: '项目文件' } },
      },
    ],
  },
  {
    path: '/admin/share',
    component: () => import('@renderer/layouts/admin/index.vue'),
    meta: { menu: { title: '共享文件', order: 100, isType: 'admin', icon: FolderConversion } },
    children: [
      {
        name: 'shareList',
        path: '',
        component: () => import('@renderer/views/share/index.vue'),
        meta: { menu: { title: '共享文件' } },
      },
    ],
  },
  {
    path: '/admin/setting',
    component: () => import('@renderer/layouts/admin/index.vue'),
    meta: { menu: { title: '预算设置', order: 100, isType: 'admin', icon: SettingTwo } },
    children: [
      {
        name: 'adjustSetting',
        path: '',
        component: () => import('@renderer/views/setting/adjustSetting.vue'),
        meta: { menu: { title: '系统核算方式' } },
      },
      {
        name: 'lossSetting',
        path: '/admin/lossSetting',
        component: () => import('@renderer/views/setting/lossSetting.vue'),
        meta: { menu: { title: '系统损耗系数' } },
      },
      {
        name: 'specSetting',
        path: '/admin/specSetting',
        component: () => import('@renderer/views/setting/specSetting.vue'),
        meta: { menu: { title: '系统材料规格' } },
      },
      {
        name: 'computeSetting',
        path: '/admin/computeSetting',
        component: () => import('@renderer/views/setting/computeSetting.vue'),
        meta: { menu: { title: '预算标题备注' } },
      },
    ],
  },
  {
    path: '/admin/export',
    component: () => import('@renderer/layouts/admin/index.vue'),
    meta: { menu: { title: '数据导出', order: 100, isType: 'admin', icon: DatabaseEnter } },
    children: [
      {
        name: 'exportLit',
        path: '',
        component: () => import('@renderer/views/export/index.vue'),
        meta: { menu: { title: '数据导出' } },
      },
    ],
  },
  {
    path: '/admin/people',
    component: () => import('@renderer/layouts/admin/index.vue'),
    meta: { menu: { title: '人员管理', order: 100, isType: 'admin', icon: Peoples } },
    children: [
      {
        name: 'employeeList',
        path: '',
        component: () => import('@renderer/views/people/employeeList.vue'),
        meta: { menu: { title: '员工管理' } },
      },
      {
        name: 'expenditureList',
        path: '/admin/expenditureList',
        component: () => import('@renderer/views/people/expenditureList.vue'),
        meta: { menu: { title: '支出对象管理' } },
      },
    ],
  },
  {
    path: '/admin/mine',
    component: () => import('@renderer/layouts/admin/index.vue'),
    meta: { menu: { title: '个人中心', order: 100, isType: 'admin', icon: People } },
    children: [
      {
        name: 'mineInfo',
        path: '',
        component: () => import('@renderer/views/mine/index.vue'),
        meta: { menu: { title: '个人中心' } },
      },
      //  {
      //   name: 'templateTable',
      //   path: 'templateTable',
      //   component: () => import('@renderer/views/mine/templateTable.vue'),
      //   meta: { menu: { title: '测试表格' } },
      // },
    ],
  },
] as RouteRecordRaw[]
